package my.merborn.ordersysteam105.models.services;

import my.merborn.ordersysteam105.models.pojo.Menu;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface MenuService {
    //select
    public List<Menu> getALL();
    public List<Menu> getALLByPageable(Pageable pageable);

    //insert
    public boolean addNewFood(Menu food);

    //update
    public boolean updateFood(Menu updatedFood);

    //delete
    public boolean deleteFood(Menu food);

    public List<Menu> MenuRankingListOrderByDESC();

    public Menu incrementMenuCount(Menu menu);

    public void incrementMenuCountByOrderList(String data);
}
